package org.csu.mypetstore.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Value;

@Data
@TableName(value = "sequence")
public class Sequence {
      @TableId(value = "name",type = IdType.INPUT)
      private String name;
      @TableField(value = "nextid")
      private int nextId;

      public Sequence() {
      }

      public Sequence(String name, int nextId) {
            this.name = name;
            this.nextId = nextId;
      }

      public String getName() {
            return name;
      }

      public void setName(String name) {
            this.name = name;
      }

      public int getNextId() {
            return nextId;
      }

      public void setNextId(int nextId) {
            this.nextId = nextId;
      }
}
